package cn.easier.activity.console.repository;

import cn.easier.activity.web.entity.QuestionnaireAnswersMessage;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 *  Repository
 */
@Repository
public interface QuestionnaireAnswersMessageRepository extends JpaRepository<QuestionnaireAnswersMessage, Integer>, JpaSpecificationExecutor<QuestionnaireAnswersMessage> {
    List<QuestionnaireAnswersMessage> findByQuestionnaireMessageIdOrderByCreateTimeDesc(Integer questionnaireMessageId);
}
